/**
 * @projectName yygh_parent
 * @package com.atguigu.yygh.hosp.repository
 * @className com.atguigu.yygh.hosp.repository.DepartmentRepository
 */
package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * DepartmentRepository
 * @description
 * @author zyw
 * @date 2023/5/25 9:41
 * @version 1.0
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
    Department getDepnameByHoscodeAndDepcode(String hoscode, String depcode);
}
